package com.work.framework.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 竞拍人表
 */
@AllArgsConstructor
@NoArgsConstructor
@TableName("bidder")
public class Bidder {

  @TableId(type = IdType.AUTO)
  private Integer bid;          //竞拍人编号（主键）
  private Integer aid;          //商品竞拍编号
  private Integer uid;          //用户编号
  private Integer permission;   //权限（0.不能竞拍 1.可以竞拍）
  private String nickname;      //昵称（用户编号+26个字母的随机选择）
  private BigDecimal pledge;    //押金
  private Integer pStatus;      //押金状态 0 冻结 1可退 2已经退押金
  private Integer flage;        //软删除

  public Integer getBid() {
    return bid;
  }

  public void setBid(Integer bid) {
    this.bid = bid;
  }

  public Integer getAid() {
    return aid;
  }

  public void setAid(Integer aid) {
    this.aid = aid;
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public Integer getPermission() {
    return permission;
  }

  public void setPermission(Integer permission) {
    this.permission = permission;
  }

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  public BigDecimal getPledge() {
    return pledge;
  }

  public void setPledge(BigDecimal pledge) {
    this.pledge = pledge;
  }

  public Integer getpStatus() {
    return pStatus;
  }

  public void setpStatus(Integer pStatus) {
    this.pStatus = pStatus;
  }

  @Override
  public String toString() {
    return "Bidder{" +
            "bid=" + bid +
            ", aid=" + aid +
            ", uid=" + uid +
            ", permission=" + permission +
            ", nickname='" + nickname + '\'' +
            ", pledge=" + pledge +
            ", pStatus=" + pStatus +
            ", flage=" + flage +
            '}';
  }
}
